<?php
include "include/config.inc.php";
if(!isset($_SESSION['s_activId']))
{
  header('location:checkLogin.php');
}

$today = date("d/m/y");
$partyArray = array();
$i=0;

$selectLoan = "SELECT accountId,accountName,address,mobile,photo,otherInfo
                 FROM account
                WHERE isParty = 1
                ORDER BY accountId";
$selectLoanRes = mysql_query($selectLoan);
while($loanRow = mysql_fetch_array($selectLoanRes))
{
	$partyArray[$i]['partyAccountId'] = $loanRow['accountId'];
	$partyArray[$i]['accountId']      = $loanRow['accountId'];
	$partyArray[$i]['accountName']    = $loanRow['accountName'];
	$partyArray[$i]['address']        = $loanRow['address'];
	$partyArray[$i]['mobile']         = $loanRow['mobile'];
	$partyArray[$i]['photo']          = $loanRow['photo'];
	$partyArray[$i]['otherInfo']      = $loanRow['otherInfo'];
	$i++;
}
include("bottom.php");
$smarty->assign('partyArray',$partyArray);  
$smarty->display('partyList.tpl');  
?>